package com.bifang.common.constant.enums.common;

/** 是否会签 */
public enum CountersignTypeEnum {
    all("all", "全部通过则流转"),
    adopt_ge("adopt_ge", "大于等于多少人通过则流转"),
    fail_ge("fail_ge", "大于等于多少人不通过则结束");

    private String type;
    private String text;

    CountersignTypeEnum(String type, String text) {
        this.type = type;
        this.text = text;
    }

    public String getType() {
        return this.type;
    }

    public String getText() {
        return this.text;
    }

    public static CountersignTypeEnum getByType(String type) {
        for (CountersignTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equalsIgnoreCase(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
